import KZJRequest from '../index'
import { TRequestDefaultResult } from '../type'

enum Search {
  Sings = '/search' // 歌曲
}

export function getSearchSings(
  keywords: string,
  limit = 30,
  offset = 0,
  type = 1000
) {
  return KZJRequest.get<TRequestDefaultResult>({
    url: Search.Sings,
    params: { keywords, limit, offset, type },
    showLoading: true
  })
}
